projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f999c8d
)
widget: Get rid of gdk_drawable_get_size() usage
author
Benjamin Otte
<otte@redhat.com>
Mon, 20 Sep 2010 14:44:47 +0000
(16:44 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 26 Sep 2010 13:11:44 +0000
(15:11 +0200)
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index 096740ca7b87416ca372e839c579e997cac7a7fa..092b0d786e35fd55f17b835dd2e7ec091ae68d27 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-3980,7
+3980,8
@@
gtk_widget_queue_draw_area (GtkWidget *widget,
x -= wx - priv->allocation.x;
y -= wy - priv->allocation.y;
- gdk_drawable_get_size (priv->window, &wwidth, &wheight);
+ wwidth = gdk_window_get_width (priv->window);
+ wheight = gdk_window_get_height (priv->window);
if (x + width <= 0 || y + height <= 0 ||
x >= wwidth || y >= wheight)